/*
 * ex3.7_showfp.c
 *
 *  Created on: 2018年11月15日
 *      Author: discotek
 */

#include <stdio.h>
#include "../header/ex3.7_showfp.h"
#include "../header/util.h"

void ex3_7_showfp() {
	float about = 32000.0;
	double abet = 2.14e9;
	long double dip = 5.32e-5;

	print_sep((char *) "example 3.7");
	printf("%f can be written %e\n", about, about);
	printf("And it's %a in hexadecimal, powers of 2 notation.\n", about);
	printf("%f can be written %e\n", abet, abet);
	printf("%Lf can be written %Le\n", dip, dip);
}
